QT       += core gui network serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET              = nettool
TEMPLATE            = app
MOC_DIR             = temp/moc
RCC_DIR             = temp/rcc
UI_DIR              = temp/ui
OBJECTS_DIR         = temp/obj
DESTDIR             = bin

SOURCES += \
    config.cpp \
    main.cpp \
    frmmain.cpp \
    frmtcpclient.cpp \
    frmdeviceconfig.cpp \
    frmserialport.cpp \
    frmdeviceupdate.cpp

HEADERS += \
    config.h \
    frmmain.h \
    frmtcpclient.h \
    frmdeviceconfig.h \
    frmserialport.h \
    frmdeviceupdate.h

FORMS += \
    frmmain.ui \
    frmtcpclient.ui \
    frmdeviceconfig.ui \
    frmserialport.ui \
    frmdeviceupdate.ui

CODECFORTR = UTF-8
CODECFORSRC = UTF-8

CONFIG              += warn_off

# 指定 uic 工具的输出目录
UI_DIR = $$PWD/temp/ui
INCLUDEPATH         += $$PWD/temp/ui  # 添加这一行


RESOURCES += \
    resources.qrc
